<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // for of里面能不能return 不能；能不能break，能；能不能continue，不能
    let arr = [1, 3, 4, 8, 10]
    for (let item of arr) {
      if (item === 4) {
        continue
      }
      console.log(item, 'item');
    }
    // for of 能有索引吗
    for (let item of arr) {
      console.log(item, 'item');
      console.log(index, 'index');
    }
  </script>
</body>
</html>